package com.zzyl.nursing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zzyl.nursing.domain.FamilyMemberElder;
import com.zzyl.nursing.vo.FamilyMemberElderDetailVo;
import com.zzyl.nursing.vo.FamilyMemberElderVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 老人家属关联老人
 *
 * @Author cisimu
 * @Date 2025/10/29 19:33
 */
@Mapper
public interface FamilyMemberElderMapper extends BaseMapper<FamilyMemberElder> {
    /**
     * 查询家人列表
     * @return
     */
    List<FamilyMemberElderVo> selectBindingElder(Long userId);

    /**
     * 查看老人列表（分页查询）
     * @param userId
     * @return
     * ,@Param(value = "pageNum") Integer pageNum, @Param(value = "pageSize") Integer pageSize
     */
    List<FamilyMemberElderDetailVo> selectBindingElderDetailList(@Param(value = "userId") Long userId);


}
